package com.universalInterface.common.exception;

import lombok.Getter;

/**
 * @author Lx
 * @date 2023/12/8 15:43
 * @description 基类：自定义异常
 * <br/> RuntimeException：运行时异常
 */
@Getter
public abstract class BaseException extends RuntimeException {

    private static final long serialVersionUID = 2643418311532474777L;

    private Integer code;

    private String message;

    public BaseException() {
        super();
    }

    public BaseException(String message) {
        super(message);
        this.message = message;
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

}
